﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace OwinSelfHostWithWebApi.V2
{
    public class GetController : ApiController
    {
        [HttpGet]
        public ServiceResult Name(string value)
        {
            ServiceResult result = new ServiceResult();
            result.Message ="v2-Name-" + value;
            result.IsSuccess = true;
            return result;
        }

        public class ServiceResult
        {
            public bool IsSuccess { get; set; }
            public string Message { get; set; }
        }
    }
}
